#include<iostream>
using namespace std;

void test( char* &p)
{
	static char text[2][20] = {"1111111", "2222222"};
	p = text[(int)(p)];
}

int main( int argc, char* argv )
{
	char *ppp;
	ppp = (char*)(1);
	test(ppp);
	cout<<ppp<<endl;
	getchar();
	return 0;
}